package com.zmn.plat.business.interfaces.dingtalk;

import java.util.Date;

import com.taobao.api.ApiException;

public interface DingTalkService {

    /**
     * 描述: 获取钉钉AccessToken
     *
     * @return AccessToken
     * @author tanghongjun
     * @since 2020/5/27
     **/
    String getDingTalkAccessToken() throws ApiException;

    /**
     * 根据员工的钉钉ID获取钉钉信息
     *
     * @param userId
     *            钉钉用户ID
     * @param workRecordTime
     *            代办时间
     * @param title
     *            标题
     * @param url
     *            跳转url
     * @param contentTitle
     *            内容标题
     * @param content
     *            发送内容
     * @return true 发送成功 false 发送失败
     * @since 2020/5/27
     */
    Boolean sendDingTalkWorkRecord(String userId, Date workRecordTime, String title, String url, String contentTitle, String content) throws ApiException;

}
